let storage = bui.storage();
loader.define(function(require, exports, module, global) {
    var pageview = {
        init(){
            let param = storage.get("article",0).split('~')
            let id = param[0]
            let title = param[1]

            if (title && title != 'null') {
                router.$("#name1").html(title)
            }

            //加载广告详情
            bui.ajax({
                url: global.api.getAdvertiseInfo,
                data: {id: id},
                method: "POST"
            }).then(function(res){
                let data = res.data
                router.$("#title1").html(data.title)
                router.$("#content1").html(data.content)
            })
        }
    };


    // 初始化
    pageview.init();

    // 输出模块
    return pageview;
})
